<template>
  <div class="question-container">
    <!--导航栏-->
    <van-nav-bar class="heaer-bar" fixed>
      <van-image slot="left" class="logo" :src="logo" />
      <van-button slot="title" type="info" size="small" round icon="search" to="/search">搜索</van-button>
    </van-nav-bar>
    <!--列表-->
    <div class="question-list">
      <ul>
        <li v-for="item in 10" :key="item">
          <h2 class="h2"><span>问：</span>网站信息是最新的吗？</h2>
          <p class="summary"><span>答：</span>你好，是的，网站所有信息均采集互联网，不代表本站态度，仅供学习参考。</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Question',
  components: {},
  data () {
    return {
      logo: require('@/assets/logo.png') // logo
    }
  }
}
</script>

<style scoped lang="less">
.question-container{
  padding-top: 46px;
  padding-bottom: 70px;
}
.heaer-bar{
  background-color: #efe614;
  /deep/ .van-nav-bar__content{
    justify-content: space-between;
    padding: 0 10px;
    .logo{
      width: 114px;
      height: 25px;
    }
    .van-nav-bar__left{
      padding-right: 0;
    }
    .van-nav-bar__title{
      margin-right: 0;
    }
  }
  .van-button--info{
    background-color: #fff;
    border: none;
    padding: 0 2rem;
  }
  .van-icon{
    color: #000;
  }
}
.question-list{
  padding: 0 15px;
  ul{
    li{
      border-radius: 10px;
      background-color: #fff;
      padding: 20px;
      margin-top: 15px;
      .h2{
        font-size: 16px;
        font-weight: normal;
        color: #333;
        margin: 0;
        span{
          font-weight: bold;
        }
      }
      .summary{
        font-size: 14px;
        color: #999;
        margin: 5px 0 0 0;
        span{
          font-weight: bold;
        }
      }
    }
  }
}
</style>
